//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class FruitTreeUseTool extends LogicCommand {
    final int cmdId = 60;
    final int treeInstanceId;

    public FruitTreeUseTool(int ticks, int treeInstanceId) {
        super(ticks);
        this.treeInstanceId = treeInstanceId;
    }

    public int getCommandId() {
        return 60;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(60);
        stream.writeInt(this.treeInstanceId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
